package com.lan.workflow.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lan.workflow.entity.ActReModel;
import com.lan.workflow.mapper.ActReModelMapper;
import com.lan.workflow.service.IActReModelService;
import com.lan.workflow.vo.ActReModelVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lanwp
 * @since 2020-07-31
 */
@Service
public class ActReModelServiceImpl extends ServiceImpl<ActReModelMapper, ActReModel> implements IActReModelService {

    @Autowired
    private ActReModelMapper actReModelMapper;

    @Override
    public IPage<ActReModelVO> page(Integer size, Integer current, Map<String, Object> paramMap) {
        IPage<ActReModelVO> page = new Page<>();
        page.setSize(size);
        page.setCurrent(current);
        return actReModelMapper.page(page, paramMap);
    }
}
